package com.dr.springboot.starter.exception;

import lombok.Data;

/**
 * Created by rui on 2018/7/25.
 */
@Data
public class RestException extends RuntimeException {

    private int code;

    public RestException() {
        super();
    }

    public RestException(int errorCode, String message) {
        super(message);
        this.code = errorCode;
    }

}
